from flask_restful import fields

channel_fields = {
    "cid":fields.Integer,
    "name":fields.String,
}
news_fields = {
    'nid':fields.Integer,
    'title':fields.String,
    'content':fields.String,
    'img':fields.String,
    'comment_count':fields.Integer,
    'digg_count':fields.Integer,
    'read_count':fields.Integer,
    'create_time':fields.DateTime,
}

user_fields = {
    'uid':fields.Integer,
    'mobile':fields.Integer,
    'user_name':fields.String,
    'intro':fields.Integer,
    'article_count':fields.Integer,
    'following_count':fields.Integer,
    'fans_count':fields.Integer,
    'like_count':fields.Integer,
    'read_count':fields.Integer,
    'status':fields.Integer,
    'last_login':fields.DateTime,
}

#  评论序列化器
comment_fields = {
    'cmid':fields.Integer,
    'digg_count':fields.Integer,
    'reply_count':fields.Integer,
    'content':fields.String,
    'is_top':fields.Integer,
    'create_time':fields.String,
}